my_tuple = (1, 2, 3)
mixed_tuple = ("apple", 3.14 , True)
single_element_tuple = (5, )
# print(my_tuple, mixed_tuple, single_element_tuple)

my_dict = {("username", "email"): "user1@example.com"}
# print(my_dict[("username", "email")])




def get_coordinates():
    return (12.34, 56.78)

x,y = get_coordinates()
# print(f"x: {x}, Y: {y}")

my_tuple = (10, 20, 30, 40)
# print(my_tuple[1])
# print(my_tuple[-1])
# print(my_tuple[:])

my_tuple = (10, 20 ,30, 40, 50)
# print(my_tuple[1:3])

# print(my_tuple[:3])
# print(my_tuple[2:])

coordinates = (1,2,3)
x,y,z = coordinates
# print(x,y,z)

my_tuple = (1, 2, 2, 3, 4, 2)
# print(my_tuple.count(2))

# print(my_tuple.index(3))

nested_tuple = (1, [2,3], 4)
nested_tuple[1][0] = 99
# print(nested_tuple)

tuple1 = (1, 2)
tuple2 = (3, 4)
new_tuple = tuple1 + tuple2
# print(new_tuple)

tuple1 = ("Python", 3.8, True, [1, 2, 3])
# print(tuple1)
# tuple1[3][1]=99
# print(tuple1)

data = (5, 10, 15, 20, 25)
i,j,k,x,y=data
new_data=(2,3)
# print(new_data)

# def count_occurrences(x):
#     new_tuple=(1,2,3,4,3,2,3)
#     return(new_tuple.count(x))

# i=count_occurrences(3)
# print(i)

tuple_a = (1, 2, 3)
tuple_b = (4, 5, 6)
tuple_ab = tuple_a + tuple_b
print(tuple_ab)